/*
 * Copyright (c) 2016. For Intelligent Group.
 */

package com.intelligent.ispc.core.service;


import com.intelligent.ispc.core.dto.UserDto;
import com.intelligent.ispc.core.entity.Role;

import java.util.List;

/**
 * Created by Peter.Li on 2015/10/8.
 */
public interface SecurityService {

    UserDto findByLoginName(String loginName);

    void updateUserPwdByUserDto(UserDto userDto);

    List<Long> findRoleByUserId(Long userid);

    List<Role> findRolesByIds(List<Long> roles);
}
